From: Mo Zhou Date: Sat, 24 Jan 2026 09:06:00 +0000 (+0100) Subject: Reduce stress of test_collaborative_call_once on __arm__. X-Git-Tag: archive/raspbian/2022.3.0-2+rpi1^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c0cc90c5a513bcda2c72295fa6f7866e50a0bcdd;p=onetbb.git Reduce stress of test_collaborative_call_once on __arm__. Last-Update: 2022-02-15 Forwarded: https://github.com/oneapi-src/oneTBB/pull/789 Gbp-Pq: Name 1010-test-less-stress.patch --- diff --git a/test/tbb/test_collaborative_call_once.cpp b/test/tbb/test_collaborative_call_once.cpp index 11a04a1..65fdd17 100644 --- a/test/tbb/test_collaborative_call_once.cpp +++ b/test/tbb/test_collaborative_call_once.cpp @@ -217,6 +217,9 @@ TEST_CASE("only calls once - stress test") { // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #elif __TBB_USE_THREAD_SANITIZER // Reduce execution time under Thread Sanitizer constexpr std::size_t N = tbb::detail::d0::max_nfs_size + 64; @@ -291,6 +294,9 @@ TEST_CASE("handles exceptions - stress test") { // that makes impossible to create more than ~500 threads. // Android has been added to decrease testing time. constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; +#elif defined(__ILP32__) && defined(__x86_64__) + // This is for x32 port https://wiki.debian.org/X32Port + constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 2; #else constexpr std::size_t N = tbb::detail::d0::max_nfs_size * 4; #endif